package com.tanggh.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * JobCategory entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "JobCategory")
public class JobCategory implements java.io.Serializable {

	// Fields

	private Integer id;
	private String code;
	private String name;
	private String fullName;
	private Integer orderId;

	// Constructors

	/** default constructor */
	public JobCategory() {
	}

	/** minimal constructor */
	public JobCategory(String code, String name) {
		this.code = code;
		this.name = name;
	}

	/** full constructor */
	public JobCategory(String code, String name, String fullName, Integer orderId) {
		this.code = code;
		this.name = name;
		this.fullName = fullName;
		this.orderId = orderId;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "Id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "Code", nullable = false, length = 10)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "Name", nullable = false, length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "FullName", length = 50)
	public String getFullName() {
		return this.fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	@Column(name = "OrderId")
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

}